<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改便民电话列表')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-people-edit" th:object="${sysAPeopleList}">
            <input name="peopleId" th:field="*{peopleId}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">小区：</label>
                <div class="col-sm-8">
                    <input name="peoplePlot" th:field="*{peoplePlot}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">电话类型：</label>
                <div class="col-sm-8">
                    <select name="phoneType" class="form-control m-b" required>
                        <option value="">所有</option>
                        <option>物流快递</option>
                        <option>开锁</option>
                        <option>废品站</option>
                    </select>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">电话名称：</label>
                <div class="col-sm-8">
                    <input name="phoneNames" th:field="*{phoneNames}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">电话：</label>
                <div class="col-sm-8">
                    <input name="peoplePhone" th:field="*{peoplePhone}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">地址：</label>
                <div class="col-sm-8">
                    <input name="peopleAddress" th:field="*{peopleAddress}" class="form-control" type="text" required>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "system/people";
        $("#form-people-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-people-edit').serialize());
            }
        }
    </script>
</body>
</html>